package com.example.design.builder;

public class ModelController {
	public Model construct(ModelBuilder modelBuilder) {
		Model model;
		modelBuilder.buildTitle();
		if(modelBuilder.isShowMenu())
			modelBuilder.buildMenu();
		if(modelBuilder.isShowList())
			modelBuilder.buildList();
		if(modelBuilder.isShowWindow())
			modelBuilder.buildWindow();
		if(modelBuilder.isShowControllerbar())
			modelBuilder.buildControllerbar();
		model = modelBuilder.createModel();
		return model;
	}
}
